<template>
  <div>
    <SearchTable :formItems="formItems" :columns="columns" :api="getData">
      <template #searchOther="{ item, formParams }">
        <div>searchOther</div>
      </template>
      <template #actions>
        <a-button type="primary">创建</a-button>
      </template>
      <template #action>
        <a @click="toggleVisible">操作</a>
      </template>
    </SearchTable>
  </div>
</template>

<script>
  import { formItems, columns } from './config';
  import { getData } from './api';

  export default {
    data() {
      return {
        getData,
        formItems,
        columns,
      };
    },
    setup(props, context) {},
  };
</script>
